import request from '@/utils/request'

// 查询客户项目关联列表
export function listCustomerProject(query) {
  return request({
    url: '/hrcrm/customerProject/list',
    method: 'get',
    params: query
  })
}

// 查询客户项目关联详细
export function getCustomerProject(id) {
  return request({
    url: '/hrcrm/customerProject/' + id,
    method: 'get'
  })
}

// 新增客户项目关联
export function addCustomerProject(data) {
  return request({
    url: '/hrcrm/customerProject',
    method: 'post',
    data: data
  })
}

// 修改客户项目关联
export function updateCustomerProject(data) {
  return request({
    url: '/hrcrm/customerProject',
    method: 'put',
    data: data
  })
}

// 删除客户项目关联
export function delCustomerProject(id) {
  return request({
    url: '/hrcrm/customerProject/' + id,
    method: 'delete'
  })
}
